<link href="../core/resource/css/pc.css?v=3" rel="stylesheet">
<style>
.pc-header-logo {
	height:76px;
	line-height:56px;
}
.pc-header .pc-navbar {
}
.pc-header .pc-navbar .pc-nav {
	
}
.pc-header .pc-navbar .pc-nav>li {
	float:left;
}
.pc-header .pc-navbar .pc-nav>li>a {
	padding-top:10px;
	padding-bottom:10px;
	line-height:56px;
}
.pc-header .pc-navbar .pc-nav>li>a:hover {
	color: #28B5D6;
}
.btn-login {
	padding:22px 15px;
	line-height:56px;
}
.pc-header .pc-navbar .pc-nav>li.btn-login a {
	padding:5px 10px;
	line-height:20px;
	color: #fff;
}
.pc-header .pc-navbar .pc-nav>li.btn-login a:hover {
	background-color: #fff;
	color: #28B5D6;
}
</style>
<nav class="navbar navbar-default pc-header">
<div class="container">
        <div class="navbar-header">
          <a class="navbar-brand pc-header-logo" href="/">
             <img ng-src="{{tomedia(pagedata.logo) || '../core/resource/images/ng-logo.png'}}" width="180px" height="50px">
          </a>
        </div>
        <div id="navbar" class="navbar-collapse collapse pc-navbar">
          <ul class="nav navbar-nav pc-nav">
            <li ng-class="{'active':page.action=='home.welcome'}">
				<a href="javascript:;" ng-click="access_json(links('/home.welcome/'))">首页</a>
			</li>
			<li ng-class="{'active':page.action=='home.news'}">
				<a href="javascript:;" ng-click="access_json(links('/home.news/'))">新闻动态</a>
			</li>
			<li ng-class="{'active':page.action=='home.plugin'}">
				<a href="javascript:;" ng-click="access_json('/home.plugin/')">应用功能</a>
			</li>
          </ul>
		  <ul class="nav navbar-nav navbar-right pc-nav">
              <li ng-class="{'active':page.action=='home.abouts'}">
				<a href="javascript:;" ng-click="access_json(links('/home.abouts/'))">关于我们</a>
			  </li>
			  <li class="btn-login">
				<a class="btn btn-primary" href="javascript:;" ng-click="access_json(links('/user.login/'))">立即体验</a>
			  </li>
          </ul>
        </div>
</div>
</nav>
<div class="container">
	<div class="row margin0">
	<div class="news">
        <div class="left">
             <a ng-repeat="item in pagedata.groups" href="javascript:;" ng-click="access_json('home.news/','id='+item.id)">{{item.title}} <i class="fa fa-angle-double-right pull-right" style="padding-top:2px"></i></a>
        </div>
		<div class="right">
			 <div class="list">
				<h4>关于我们</h4>
				<p ng-bind-html="trust(pagedata.site.about)"></p>
				<h4>联系我们</h4>
				<p>公司名称：{{pagedata.site.cname}}</p>
				<p>公司电话：{{pagedata.site.phone}}</p>
				<p>联系QQ：{{pagedata.site.qq}}</p>
				<p>联系邮箱：{{pagedata.site.mail}}</p>
				<p>地址：{{pagedata.site.address}}</p>
				<p><div class="img" style="width:100%; height:180px; border:#ccc solid 1px;" id="baidumap"></div></p>
			 </div>
        </div>
    </div>
	</div>
</div>
<script>
	require(['map'], function(BMap){
	console.log(window.scope.pagedata.site.naddress.lng);
		var bmap = {
			'option' : {
				'lock' : false,
				'container' : 'baidumap',
				'infoWindow' : {'width' : 250, 'height' : 100, 'title' : ''},
				'point' : {'lng' : window.scope.pagedata.site.naddress.lng, 'lat' : window.scope.pagedata.site.lat}
			},
			'init' : function(option) {
				var $this = this;
				$this.option = $.extend({},$this.option,option);
				$this.option.defaultPoint = new BMap.Point($this.option.point.lng, $this.option.point.lat);
				$this.bgeo = new BMap.Geocoder();
				$this.bmap = new BMap.Map($this.option.container);
				$this.bmap.centerAndZoom($this.option.defaultPoint, 15);
				$this.bmap.enableScrollWheelZoom();
				$this.bmap.enableDragging();
				$this.bmap.enableContinuousZoom();
				$this.bmap.addControl(new BMap.NavigationControl());
				$this.bmap.addControl(new BMap.OverviewMapControl());
				//添加标注
				$this.marker = new BMap.Marker($this.option.defaultPoint);
				$this.marker.enableDragging();
				$this.bmap.addOverlay($this.marker);
				$this.marker.setAnimation(BMAP_ANIMATION_BOUNCE);
			},
			'setMarkerCenter' : function() {
				var $this = this;
				var center = $this.bmap.getCenter();
				$this.marker.setPosition(new BMap.Point(center.lng, center.lat));
				$this.showPointValue();
				$this.showAddress();
			}
		};
		var option = {};
		option = {'point' : {'lng' : window.scope.pagedata.site.naddress.lng, 'lat' : window.scope.pagedata.site.lat}}
		bmap.init(option);

		//banner
		$('#banner, #banner .item').height($(window).height());
	});
</script>
<footer class="footer">
    <p class="pull-right" ng-bind-html="trust(main.footerright)">  </p>
    <p ng-bind-html="trust(main.footerleft)"></p>
</footer>